int initOwner(char** atts, int size, int beta, unsigned char** pubBytes, int* pubLen);

int initDiscreteLogMap(int max);

int enc_simple(char** atts, int nAtts, int value, unsigned char** cipher, int* len);

int enc_slidingWindow(char** atts, int nAtts, int value, int index, unsigned char** cipher, int* len);

int generateTransformKey(char* policy, unsigned char** tk, int policyId, int* len);

int generateUserDecryptionKey(unsigned char** key, int* len, int policyId);

int generateUserMaskValue(int alpha, unsigned char** mask, int* len);
